import 'package:time/http/factory/entity_factory.dart';

import 'http_base_response.dart';

class HttpNormalResponse<T> extends HttpBaseResponse<T> {
  T? data;

  HttpNormalResponse.fromJson(String className, Map<String, dynamic> json) : super.fromJson(json) {
    data = EntityFactory.generateOBJ<T>(className, json["data"]);
  }

  T? getData() {
    return data;
  }
}
